package com.xiaomazi.edu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
    * 评论
    */
@ApiModel(value="com-xiaomazi-edu-entity-Comment")
@Data
@TableName(value = "edu_comment")
public class Comment implements Serializable {
    /**
     * 评论ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="评论ID")
    private String id;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    @ApiModelProperty(value="课程id")
    private String courseId;

    /**
     * 讲师id
     */
    @TableField(value = "teacher_id")
    @ApiModelProperty(value="讲师id")
    private String teacherId;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="会员id")
    private String memberId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value="会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="会员头像")
    private String avatar;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value="评论内容")
    private String content;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField(value = "is_deleted")
    @TableLogic
    @ApiModelProperty(value="逻辑删除 1（true）已删除， 0（false）未删除")
    private Byte isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;
}